package com.itheima.controller;

import com.itheima.pojo.*;
import com.itheima.service.OperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class OperateLogController {


    @Autowired
    OperateLogService operateLogService;

    //请求路径：/log/page
    //接口描述：该接口用于日志信息的分页查询
    //请求参数
    //参数格式：queryString
    @GetMapping("/log/page")
    public Result page(EmpQueryParam empQueryParam) {
        log.info("日志列表查询");
        PageResult<OperateLog> pageResult = operateLogService.page(empQueryParam);
        return Result.success(pageResult);

    }

}
